\hypertarget{classvs_1_1net_1_1_tcp_acceptor}{\section{vs\-:\-:net\-:\-:Tcp\-Acceptor Class Reference}
\label{classvs_1_1net_1_1_tcp_acceptor}\index{vs\-::net\-::\-Tcp\-Acceptor@{vs\-::net\-::\-Tcp\-Acceptor}}
}


Wrapper class for acceptor socket. This class is a factory, and accept new socket streams.  




{\ttfamily \#include $<$Tcp\-Acceptor.\-h$>$}

Inheritance diagram for vs\-:\-:net\-:\-:Tcp\-Acceptor\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classvs_1_1net_1_1_tcp_acceptor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classvs_1_1net_1_1_tcp_acceptor_a02f58b86c65b68b9fc6f9d5f57b71fa6}{\hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} \hyperlink{classvs_1_1net_1_1_tcp_acceptor_a02f58b86c65b68b9fc6f9d5f57b71fa6}{Accept} (\hyperlink{classvs_1_1net_1_1_internet_address}{Internet\-Address} \&address, \hyperlink{classvs_1_1net_1_1_tcp_stream}{Tcp\-Stream} $\ast$socket\-\_\-stream=0)}\label{classvs_1_1net_1_1_tcp_acceptor_a02f58b86c65b68b9fc6f9d5f57b71fa6}

\begin{DoxyCompactList}\small\item\em Accept socket stream from client. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_tcp_acceptor_a5c7f817a9d58e404ec94f02fd92dbdbf}{int \hyperlink{classvs_1_1net_1_1_tcp_acceptor_a5c7f817a9d58e404ec94f02fd92dbdbf}{Get\-Listen\-Queue\-Length} ()}\label{classvs_1_1net_1_1_tcp_acceptor_a5c7f817a9d58e404ec94f02fd92dbdbf}

\begin{DoxyCompactList}\small\item\em Get the listen queue size. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_tcp_acceptor_a0ea426c2b23ece4a5991b861e72f9d3c}{void \hyperlink{classvs_1_1net_1_1_tcp_acceptor_a0ea426c2b23ece4a5991b861e72f9d3c}{Set\-Listen\-Queue\-Length} (int length)}\label{classvs_1_1net_1_1_tcp_acceptor_a0ea426c2b23ece4a5991b861e72f9d3c}

\begin{DoxyCompactList}\small\item\em Set the listen queue size. \end{DoxyCompactList}\end{DoxyCompactItemize}
{\bf }\par
\begin{DoxyCompactItemize}
\item 
\hyperlink{classvs_1_1net_1_1_tcp_acceptor_ac00760782499688e759cb2812ce09dbd}{Tcp\-Acceptor} (\hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} handle=\hyperlink{namespacevs_1_1net_a022e70e88d4dc482408183296dc49ab5}{I\-N\-V\-A\-L\-I\-D\-\_\-\-S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E}, int backlog=D\-E\-F\-A\-U\-L\-T\-\_\-\-L\-I\-S\-T\-E\-N\-\_\-\-Q\-U\-E\-U\-E\-\_\-\-S\-I\-Z\-E)
\item 
\hypertarget{classvs_1_1net_1_1_tcp_acceptor_a143efe7100b1b1495472a224be5659fd}{{\bfseries Tcp\-Acceptor} (const \hyperlink{classvs_1_1net_1_1_internet_address}{Internet\-Address} \&address, int backlog=D\-E\-F\-A\-U\-L\-T\-\_\-\-L\-I\-S\-T\-E\-N\-\_\-\-Q\-U\-E\-U\-E\-\_\-\-S\-I\-Z\-E)}\label{classvs_1_1net_1_1_tcp_acceptor_a143efe7100b1b1495472a224be5659fd}

\item 
\hypertarget{classvs_1_1net_1_1_tcp_acceptor_a331029e68bbb48cfa65ddac21473ef45}{{\bfseries Tcp\-Acceptor} (unsigned short port, const char $\ast$address=0, int backlog=D\-E\-F\-A\-U\-L\-T\-\_\-\-L\-I\-S\-T\-E\-N\-\_\-\-Q\-U\-E\-U\-E\-\_\-\-S\-I\-Z\-E)}\label{classvs_1_1net_1_1_tcp_acceptor_a331029e68bbb48cfa65ddac21473ef45}

\end{DoxyCompactItemize}

{\bf }\par
\begin{DoxyCompactItemize}
\item 
\hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} \hyperlink{classvs_1_1net_1_1_tcp_acceptor_a52eecb6975014558c0cba1e3df436708}{Listen} (const \hyperlink{classvs_1_1net_1_1_internet_address}{Internet\-Address} \&address)
\item 
\hypertarget{classvs_1_1net_1_1_tcp_acceptor_a58cbebdbdc66ebe37bf8380151635e1d}{\hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} {\bfseries Listen} (unsigned short port, const char $\ast$address=0)}\label{classvs_1_1net_1_1_tcp_acceptor_a58cbebdbdc66ebe37bf8380151635e1d}

\end{DoxyCompactItemize}



\subsection{Detailed Description}
Wrapper class for acceptor socket. This class is a factory, and accept new socket streams. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classvs_1_1net_1_1_tcp_acceptor_ac00760782499688e759cb2812ce09dbd}{\index{vs\-::net\-::\-Tcp\-Acceptor@{vs\-::net\-::\-Tcp\-Acceptor}!Tcp\-Acceptor@{Tcp\-Acceptor}}
\index{Tcp\-Acceptor@{Tcp\-Acceptor}!vs::net::TcpAcceptor@{vs\-::net\-::\-Tcp\-Acceptor}}
\subsubsection[{Tcp\-Acceptor}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-N\-L\-I\-N\-E} vs\-::net\-::\-Tcp\-Acceptor\-::\-Tcp\-Acceptor (
\begin{DoxyParamCaption}
\item[{{\bf S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E}}]{handle = {\ttfamily {\bf I\-N\-V\-A\-L\-I\-D\-\_\-\-S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E}}, }
\item[{int}]{backlog = {\ttfamily DEFAULT\-\_\-LISTEN\-\_\-QUEUE\-\_\-SIZE}}
\end{DoxyParamCaption}
)}}\label{classvs_1_1net_1_1_tcp_acceptor_ac00760782499688e759cb2812ce09dbd}
Constructors. 

\subsection{Member Function Documentation}
\hypertarget{classvs_1_1net_1_1_tcp_acceptor_a52eecb6975014558c0cba1e3df436708}{\index{vs\-::net\-::\-Tcp\-Acceptor@{vs\-::net\-::\-Tcp\-Acceptor}!Listen@{Listen}}
\index{Listen@{Listen}!vs::net::TcpAcceptor@{vs\-::net\-::\-Tcp\-Acceptor}}
\subsubsection[{Listen}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-N\-L\-I\-N\-E} {\bf S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} vs\-::net\-::\-Tcp\-Acceptor\-::\-Listen (
\begin{DoxyParamCaption}
\item[{const {\bf Internet\-Address} \&}]{address}
\end{DoxyParamCaption}
)}}\label{classvs_1_1net_1_1_tcp_acceptor_a52eecb6975014558c0cba1e3df436708}
Prepare to accept socket stream from client. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\hyperlink{_tcp_acceptor_8h}{Tcp\-Acceptor.\-h}\end{DoxyCompactItemize}
